home *** CD-ROM | disk | FTP | other *** search
- property channel, type
- global gActorList, gCustomCursor
-
- on birth me, cursorCastnumber, typeSymbol, cursorChannel
- set type to typeSymbol
- if voidp(cursorChannel) then
- set channel to 48
- else
- set channel to cursorChannel
- end if
- set the castNum of sprite channel to cursorCastnumber
- puppetSprite(channel, 1)
- cursor(200)
- set gCustomCursor to me
- end
-
- on update me
- set the locH of sprite channel to the mouseH
- set the locV of sprite channel to the mouseV
- puppetTempo(60)
- end
-
- on changeCursor me, cursorCastnumber
- set the castNum of sprite channel to cursorCastnumber
- end
-
- on dispose me
- removeSprite(channel)
- set actorPos to getPos(gActorList, me)
- if actorPos <> 0 then
- deleteAt(gActorList, actorPos)
- end if
- cursor(-1)
- set gCustomCursor to EMPTY
- end
-